//
//  FLInterfaceDuoBao.h
//  Pods
//
//  Created by LinXiaoBin on 16/3/21.
//
//

#import "FLInterface.h"

typedef enum : NSUInteger {
    HttpSendMethodPOST,
    HttpSendMethodGET,
} HttpSendMethod;

#define ValueOrEmpty(value) ((value)?(value):@"")

@protocol FLInterfaceBusinessParamDelegate;

@interface FLInterfaceForBusiness : FLInterfaceBase

@property (nonatomic, weak) id<FLInterfaceBusinessParamDelegate> paramDelegate;


- (void)requestAction:(NSString *)action params:(NSDictionary *)params httpSendMethod:(HttpSendMethod)httpSendMethod;

@end


/**
 业务端参数代理接口
 */
@protocol FLInterfaceBusinessParamDelegate <NSObject>
@required
- (NSString *)pSessionID:(FLInterfaceForBusiness *)interface;
- (NSInteger)pUserID;
- (NSString*)pUserName;
@end
